<template>
    <div class="yemian">
        <div class="dingbu">
        <div class="biaoti">
          <img src="../assets/image/纸飞机.png" class="tubiao">
          <span class="wz">NBM在线考试系统</span>
        </div>
        <NavBar />
        <div class="touxiang">
          <img src="../assets/image/头型.png" style="height: 50px; width: 50px;">
          <UserInfo />
        </div>
      </div>

      <div class="subject-tabs">
        <div class="action-button publish-exam"  >
                <div class="bj" @click="yw">
                    <img src="../assets/image/1234.png" style="width: 200px; height: 200px; " >
                    <div style="margin-left: 15px; font-size: 25px;">语  文</div>
                </div>
        </div>
        <div class="action-button publish-exam"  >
                <div class="bj" @click="sx">
                    <img src="../assets/image/2.png" style="width: 200px; height: 200px; ">
                    <div style="margin-left: 15px; font-size: 25px;">数  学</div>
                </div>
        </div>

        <div class="action-button publish-exam"  >
            <div class="bj" @click="yy">
                <img src="../assets/image/15.png" style="width: 200px; height: 200px; ">
                <div style="margin-left: 15px; font-size: 25px;">英  语</div>
            </div>
        </div>
      </div>
      
      
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router' 
import NavBar from '../components/NavBar.vue';
import UserInfo from '../components/UserInfo.vue';

const router = useRouter()

const yw = () => {
  router.push('/tkglYW');
};
const sx = () => {
  router.push('/tkglSX');
};
const yy = () => {
  router.push('/tkglYY');
};
</script>

<style  scoped>
.yemian {
  width: 100%;
  min-height: 100vh;
  padding: 0 20px;
  box-sizing: border-box;
}

.dingbu {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;

  box-sizing: border-box;
}

.biaoti {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tubiao {
  height: 40px;
  width: 40px;
}

.wz {
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

.touxiang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.LBT {
  width: 100%;
  height: 170px;
  margin: 20px 0;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz {
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

.touxiang {
  width: 200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}



.action-button {
 width: 300px;
 height: 300px;
 border-radius: 75%;
 margin-left: 60px;
}


.bj{
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s; 
  background-color: #dadada;
  margin-top: 60px;
  margin-right: 50px;
  border-radius: 20%;
}
.bj:hover {
transform: scale(1.05); /* 悬停放大效果 */
}

.bj.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
.subject-tabs{
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    margin-top: 90px;
    
}
</style>